What is a shot clock?

A shot clock is a timer that is used in basketball to ensure that teams attempt a shot within a certain amount of time. The shot clock is set to a specific number of seconds, which varies depending on the level of play, and starts as soon as a team gains possession of the ball. Teams must attempt a shot and hit the rim of the basket before the shot clock expires. If they fail to do so, a violation occurs and the opposing team gains possession of the ball. The shot clock is used to encourage teams to play more aggressively and prevent teams from stalling or delaying the game.